package com.aipp.mall.h5.domain.entity;

import com.aipp.mall.common.anno.Note;
import com.aipp.mall.common.model.BaseAudit;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * sku信息对象 pms_sku
 *
 * @author zcc
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("pms_sku")
public class Sku extends BaseAudit implements Serializable {

    @Serial
    private static final long serialVersionUID = 5622335361249102255L;

    @Note("ID")
    private Long id;

    @Note("PRODUCT_ID")
    private Long productId;

    @Note("sku编码")
    private String outSkuId;

    @Note("PRICE")
    private BigDecimal price;

    @Note("展示图片")
    private String pic;

    @Note("商品销售属性，json格式")
    private String spData;

    @Note("库存数")
    private Integer stock;

}
